package configuration

func GuildRankingConfigs(serverID int32) []ActivityConf {

	var n = 开服第N天(serverID)

	var res []ActivityConf

	if n <= Z8 {
		// open server not over 28 day
		for _, v := range 公会榜1 {
			if n >= v.BeginDay && n <= v.ShowDay() {
				v.setTime1(serverID)
				res = append(res, v)
			}
		}
	} else {

		n -= Z8
		var mod = n % Z8
		if mod == 0 {
			mod = Z8
		}

		for _, v := range 公会榜2 {
			if mod >= v.BeginDay && mod <= v.ShowDay() {
				v.setTime2(serverID)
				res = append(res, v)
			}
		}
	}

	return res
}
